import request from "@/utils/request";

// 绑定防疫机器人
export function bindRobot(data) {
  return request({
    url: "/robot-archives/v1/binding",
    method: "post",
    data,
  });
}

// 防疫用户解绑机器人
export function unbindRobot(id) {
  return request({
    url: "/robot-archives/v1/unBinding/" + id,
    method: "post",
  });
}

// 根据公司id获取机器人列表
export function getCompanyRobotList(params) {
  return request({
    url: "/robot-archives/v1/getCompanyRobotList",
    method: "get",
    params,
  });
}

// 获取机器人id获取状态
export function getDisinfectStatusById(id) {
  return request({
    url: "/robot-anti-epidemic-log/v1/getDisinfectStatusById/" + id,
    method: "get",
  });
}

// 第四代防疫上装控制
export function controlUpperModel(params) {
  return request({
    url: "/robot-remote-control/v1/disinfect/controlUpperModel",
    method: "post",
    params,
  });
}

// 添加防疫定点巡航表
export function disinfectCruise(data) {
  return request({
    url: "/robot-cruise/disinfectCruiseV2",
    method: "post",
    data,
  });
}

// 防疫机器人位置校准
export function disinfectCalibration(data) {
  return request({
    url: "/robot-cruise/calibrationV2",
    method: "post",
    data,
  });
}
